home *** CD-ROM | disk | FTP | other *** search
/ .net 2000 August / NET74.ISO / pc / Software / JavaApplet / AnfyMacBeta1.sea / Anfy for Macintosh / anjavapp / anfypaint / anfypaint.txt < prev    next >
Encoding:
Text File  |  1999-07-05  |  5.3 KB  |  144 lines  |  [TEXT/ttxt]

  1.  
  2.           Anfy Paint - Copyright (C) by Fabio Ciucci 1996-99
  3.  
  4.  
  5. INTRODUCTION.
  6.  
  7. This applet is a complete paint program, with freehand and geometric
  8. drawing tools. It is possible to save painted images to the web space
  9. where you placed the applet, via the mailserver (smtp, port 25).
  10.  
  11. The images will be sent to a specified e-mail address, as attacched JPG
  12. files. This will allow everyone to receive paintings from their visitors,
  13. to build graphical bookmarks, or interactive virtual galleries.
  14.  
  15. The JPG saver is based on the work of JPEG group.
  16.  
  17. If a background image is specified, the applet becomes a colouring book.
  18.  
  19. *****************************************************************
  20.  
  21. NECESSARY FILES
  22.  
  23. The following 6 ".class" files must be uploaded: 
  24.  
  25. anfypaint.class
  26. anfypaintb.class
  27. anfypaintc.class 
  28. anfypaintd.class
  29. anfypainte.class
  30. Lware.class
  31.  
  32. Plus, anfypaint.jar for speedy loading on recent browsers.
  33.  
  34. **********************************************************************
  35.  
  36. EXAMPLE.
  37.  
  38. Insert the <applet> tag in your html document as follows to add this applet
  39. to your page (Comments after the ";" symbol are code explanations and
  40. acceptable min/max values. They are not part of the applet language):
  41.  
  42.  
  43. <applet archive="anfypaint.jar" code="anfypaint.class" width="580" height="350">
  44. <param name="credits" value="Applet by Fabio Ciucci (www.anfyteam.com)">
  45. <param name="regcode" value="NO">         ; Registration code (if you have it)
  46. <param name="jpgquality" value="75">      ; Jpeg saving quality (1..100)
  47. <param name="savebutton" value="YES">     ; Save button (YES / NO)
  48. <param name="sendtomail" value="mypaint@mysite.com">  ; Mail where send image
  49. <param name="backcolor" value="e0e0e0">   ; Nackground color (hex RRGGBB format)
  50. <param name="backimage" value="NO">       ; Background image (it's name or "NO")
  51. <param name="pencolor" value="000000">    ; Start pen color (hex RRGGBB format)
  52. <param name="startmsg" value="Click here."> ; Starting screen message
  53. Sorry, your browser doesn't support Java.; Message for no java browsers.
  54. </applet>                                ; End of applet tag
  55.  
  56.                            
  57. ****************************************************************
  58.  
  59. PARAMETER DESCRIPTIONS
  60.  
  61. The following instructions describe the meaning of the available 
  62. parameters for this applet:
  63.  
  64. [Specify the applet and its size]
  65.  
  66. <applet archive="anfypaint.jar" code="anfypaint.class" width="580" height="350">
  67.  
  68. The size of the applet is determined by width and height tags.
  69. The minimum width is 580 ,while the minimum height is 150.
  70.  
  71. NOTE:
  72.  
  73. You can make larger paint areas but not smaller.
  74.  
  75. [Credit parameter]
  76.  
  77. <param name="credits" value="Applet by Fabio Ciucci (www.anfyteam.com)">
  78.  
  79. Attempting to change the credit parameter will disable the applet.
  80.  
  81. [Registration parameters]
  82.  
  83. <param name="regcode" value="NO">         ; Registration code (if you have it)
  84.  
  85. To activate the reg parameters, read the shareware registration notes.
  86. In the "regcode" parameter, place the registration code you purchased 
  87. from us. If the code is correct and the applet is run from the registered
  88.  domain name, "link" parameters will be enabled and the applet will be
  89. linked to an associated URL when it mouse-clicked.
  90.  
  91. [Image save options]
  92.  
  93. <param name="savebutton" value="YES">     ; Save button (YES / NO)
  94.  
  95. When the applet has a regcode, you can set "YES" at the "savebutton" parameter
  96. so as to enable the send button.
  97.  
  98. <param name="jpgquality" value="75">      ; Jpeg saving quality (1..100)
  99.  
  100. Remember you can change compression level of the saved images, with the
  101. "jpgquality" parameter. Higher values result in high quality as well as
  102. bigger file sizes. The range goes from 1 to 100, and best results are around 75.
  103.  
  104. <param name="sendtomail" value="mypaint@mysite.com">  ; Mail where send image
  105.  
  106. The registered applet will send the output images using smtp port of the server
  107. as mail attachments. You can specify the e-mail with the "sendtomail" parameter.
  108. With some CGI programming, you can automatically upload the saved images to your
  109. site.
  110.  
  111. NOTE:
  112.  
  113. Due to security limitations, the applet can connect only to the same server 
  114. from which it is loaded. This means, if your applet is running on server.com 
  115. (port 80; www server), it will connect to the server.com port 25 (smtp mail 
  116. server port), and try to send the images as mail attachments. However, if the
  117.  mail server is absent, or does not allow public access, your anfypaint can't
  118. send the images.
  119.  
  120. [Background]
  121.  
  122. <param name="backcolor" value="e0e0e0">   ; Nackground colour (hex RRGGBB format)
  123. <param name="backimage" value="NO">       ; Background image (it's name or "NO")
  124.  
  125. Use "backcolor" to change background colour. The format is same as the html
  126. colour format, without the leading #.
  127.  
  128. If you want to display an image in the background, place its name in the
  129. place of "NO" at backimage parameter (for example "colorbook.jpg").
  130. This can transform the anfypaint in a coloring book for kids, for example.
  131.  
  132. NOTE:
  133.  
  134. If you select the background image smaller than the paint area, it cannont
  135. fully cover the are, however this is acceptable. 
  136.  
  137. [Pen colour]
  138.  
  139. <param name="pencolor" value="000000">    ; Start pen color (hex RRGGBB format)
  140. <param name="startmsg" value="Click here."> ; Starting screen message
  141.  
  142. You can decide the default pen colour with "pencolor", while the default message
  143. printed on screen with "startmsg".
  144.